
$.each($(".codeMirror"), function (k, v) {
    var editor = CodeMirror.fromTextArea(v, {
        lineNumbers: true,
        styleActiveLine: true,
        matchBrackets: true,
        theme : "panda-syntax"
    });

    var auto = $(v).attr("rel-auto");
    if ( auto ) {
        editor.setSize('auto',auto);
    } else {
        editor.setSize('auto','400px');
    }
})
